package top.broncho.lottery.util

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.request.RequestOptions

fun ImageView.loadLocalImage(path: String) {
    val options = RequestOptions().diskCacheStrategy(DiskCacheStrategy.NONE)
    Glide.with(context.applicationContext).load(path).apply(options).into(this)
}